package cn.com.ejiakanghu.vo;

import org.linlinjava.litemall.db.domain.AgedmallHospitalSend;
import sun.security.jca.GetInstance;

import java.math.BigDecimal;

public class HourReachHospitalVo {

    private Integer id;
    private String hospital;
    private String province;
    private String city;
    private String village;
    private String address;
    private BigDecimal lng;
    private BigDecimal lat;

    public static HourReachHospitalVo getInstance(AgedmallHospitalSend agedmallHospitalSend) {
        HourReachHospitalVo hourReachHospitalVo = new HourReachHospitalVo();
        hourReachHospitalVo.setId(agedmallHospitalSend.getId());
        hourReachHospitalVo.setHospital(agedmallHospitalSend.getHospitalName());
        hourReachHospitalVo.setProvince(agedmallHospitalSend.getProvince());
        hourReachHospitalVo.setCity(agedmallHospitalSend.getCity());
        hourReachHospitalVo.setVillage(agedmallHospitalSend.getVillage());
        hourReachHospitalVo.setAddress(agedmallHospitalSend.getAddressDetail());
        hourReachHospitalVo.setLng(agedmallHospitalSend.getLng());
        hourReachHospitalVo.setLat(agedmallHospitalSend.getLat());
        return hourReachHospitalVo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getHospital() {
        return hospital;
    }

    public void setHospital(String hospital) {
        this.hospital = hospital;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getVillage() {
        return village;
    }

    public void setVillage(String village) {
        this.village = village;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BigDecimal getLng() {
        return lng;
    }

    public void setLng(BigDecimal lng) {
        this.lng = lng;
    }

    public BigDecimal getLat() {
        return lat;
    }

    public void setLat(BigDecimal lat) {
        this.lat = lat;
    }
}
